<?php
/*------------------------------------------------------------------------
# default.php - tour Component
# ------------------------------------------------------------------------
# author    khuon sokkhim
# copyright Copyright (C) 2014. All Rights Reserved
# license   GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
# website   www.sysokleng.com
-------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

$app = JFactory::getApplication();
$template_name = $app->getTemplate();

$doc = JFactory::getDocument(); 

$doc->addStyleSheet(JURI::root() . 'templates/'.$template_name.'/css/flick/jquery-ui-1.10.4.custom.css');
$doc->addScript(JURI::root() . 'templates/'.$template_name.'/js/lib/jquery-1.10.2.js');
$doc->addScript(JURI::root() . 'templates/'.$template_name.'/js/lib/jquery-ui-1.10.4.custom.js');
$doc->addScript(JURI::root() . 'templates/'.$template_name.'/js/common.js');

?>
<div id="tour-content">
    <div id="tabs">
    	<ul>
    		<li><a href="#tabs-1">Introduction</a></li>
    		<li><a href="#tabs-2">In Brief</a></li>
    		<li><a href="#tabs-3">In Detail</a></li>
     	    <li><a href="#tabs-4">What's In</a></li>
    	</ul>
    	<div id="tabs-1">
            <table>
                <tr>
                    <td class="tableTourDetail tableTourDetailOne">
                       <h2> <?php echo $this->item->title; ?></h2>
                       <h6><?php echo $this->item->tourday; ?> / <?php echo $this->item->tournight; ?></h6><br />
                       <?php echo $this->item->tourdescribtion; ?>
                    </td>
                    <td class="tableTourDetail"><?php if($this->item->tourimage){ ?>
                       <a class="makeQuery" href="index.php/contact">Make an enquiry</a><br /><br /><br />
		               <img width="280px" height="200px" src="<?php echo $this->item->tourimage; ?>" />
                        <?php } ?>
                     </td>
                </tr>
            </table>        
        </div>
    	<div id="tabs-2">
            <h2> <?php echo $this->item->title; ?></h2>
            <h6><?php echo $this->item->tourday; ?> / <?php echo $this->item->tournight; ?></h6><br />
            <?php echo $this->item->tourbrief; ?>
        </div>
    	<div id="tabs-3">
            <h2> <?php echo $this->item->title; ?></h2>
            <h6><?php echo $this->item->tourday; ?> / <?php echo $this->item->tournight; ?></h6><br />
            <?php echo $this->item->tourdetail; ?>
        </div>
        <div id="tabs-4">
             <h2> <?php echo $this->item->title; ?></h2>
             <h6><?php echo $this->item->tourday; ?> / <?php echo $this->item->tournight; ?></h6><br />
             <?php echo $this->item->tourwaitin; ?>
        </div>
    </div>
</div>